package mix.factorystrategy;

public class StrategyFactory {
	public static IDeduction getDeduction(StrategyManEnum strategy){
		IDeduction deduction = null;
		try {
			deduction = (IDeduction)Class.forName(strategy.getValue()).newInstance();
		} catch (Exception e){
			e.printStackTrace();
		}
		return deduction;
	}
}
